package com.young.netty.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Netty网关配置
 *
 * @author Young
 * @Date 2021-07-24 19:09
 */
@Data
@Configuration
@ConfigurationProperties(value = "netty.gateway")
public class NettyGatewayConfig {

    /**
     * bossEventLoopGroup线程数
     */
    private Integer bossEventLoopGroupThreads;

    /**
     * childEventLoopGroup线程数
     */
    private Integer childEventLoopGroupThreads;

    /**
     * 绑定地址
     */
    private Integer serverPort;

}
